﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebStudio.Business.Entity;
using WebStudio.Framework.Helper;

namespace WebStudio.Business.Rule
{
    public class UserRule
    {
        public static bool IsLogin(string userName, string password)
        {
            int i = DBHelper.ExecuteIntScalar(string.Format("select count(*) as allcounts from UserTB where UserName='{0}' and Password='{1}'", userName, password));
            if (i > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
